package com.tiancheng.trade.settlement.model.settlement;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.tiancheng.trade.settlement.model.base.BaseEntity;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 银行对账单详情表
 */
@Data
@TableName("settlement_bank_bill_detail")
public class SettlementBankBillDetail extends BaseEntity {

    private String clearBatchNo;//清分批号
    private String subMchId;//子商户号
    private String orderId;//订单编号(外部订单号)
    private String subOrderId;//子订单编号(子订单号)
    private String bankOrderId;//银行订单号(招行订单号)
    private String bankRefNo;//银行交易参考号//
    private String payType;//支付方式
    @TableField(exist = false)
    private String payTypeCn;//支付方式
    private Integer clearAmount;//清分金额
    private LocalDateTime verifiedTime;//核销时间
    private LocalDate payTime;//订单日期 //订单交易时间
    private String payChannelCode;//支付渠道编码 //
    private String clearDate;//银行清分日期
    private String tradeType;//交易类型,VE-核销，RE-退款
    private LocalDateTime statementDate;//账单日期
    private String payAcct;//付款方账号
    private String payAcctName;//付款方名称
    private String colAcct;//收款方账户号
    private String colAcctName;//收款方名称
    private String costType;//费用类型：PL-平台应收，ME-商户应收，CU-营销金额，SC-手续费
    @TableField(exist = false)
    private String costTypeCn;
    private String billStatus; //对账状态（finish-已对账，wait-待对账）
    @TableField(exist = false)
    private String billStatusCn;
}
